<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>日日期切换Demo</title>
    <style>
        DIV.dayChange {
            width: 485px;
            height: 50px;
            line-height: 50px;
            margin: 0 auto;
            text-align: center;
            color: #987828;
            font-weight: normal;
            font-size: 20px;
        }
        DIV.dayChange #left_dire {
            float: left;
           /* background: url(../admin/images/lert1.png) no-repeat;
            width: 16px;
            height: 24px;
            margin-top: 13px;*/
        }

        DIV.dayChange #left_dire:hover {
            /*background: url(../admin/images/lert1h.png) no-repeat;*/
        }

        DIV.dayChange #right_dire {
            float: right;
           /* background: url(../admin/images/right1.png) no-repeat;
            width: 16px;
            height: 24px;
            margin-top: 13px;
            *margin-top: -38px;*/
        }

        DIV.dayChange #right_dire:hover {
            /*background: url(../admin/images/right1h.png) no-repeat;*/
        }
    </style>
    <!--来自百度的cdn-->
    <script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
    <script src="../src/js/jquery.dayChange.js"></script>
</head>
<body>
<div id="desc">改插件一款每日切换的插件，使用场景是用户点解向前或者向后按钮变更时间</div>
<ul>
    <li>可自定义设置日期显示格式</li>
    <li>有开放的事件点解回调函数，回调返回时间为时间戳</li>
</ul>
<div class="dayChange"></div>
<script>
    $(function () {
        $(".dayChange").dayChange({
            format: 'yyyy年MM月dd日 EEE',
            callBack: loadData
        });
    });
    function loadData(time) {
        console.log("time:" + time);
    }
</script>
</body>
</html>